import { CHANGESLIDER } from '../mutation-type'
const module = {
  namespaced: true, // 命名空间
  state: {
    slider: false
  },
  actions: {

  },
  mutations: {
    [CHANGESLIDER](state, payload) {
      if (typeof (payload) === "boolean") {
        state.slider = payload
        return
      }
      state.slider = !state.slider;
    }
  }
}

export default module
